package com.wuli.redis.controller;

import com.wuli.redis.config.RedisUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class RedisDemoController {

    @Autowired
    private RedisUtil redisUtil;

    //匿名帐号登录错误
    @RequestMapping(value = "/index")
    @ResponseBody
    public  String loginAnonyFailed(){

        redisUtil.set("king","kingboyrang");
        return "hello world!";
    }

}
